package com.bao.work.work03;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author baoye
 * @date 2024-08-13/18:46
 */
public class Book {
    private String title;
    private String author;
    private String year;
    private Double price;

    @Override
    public String toString() {
        return "Book{" +
                "title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", year=" + year +
                ", price=" + price +
                '}';
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Book() {
    }

    public Book(String title, String author, String year, Double price) {
        this.title = title;
        this.author = author;
        this.year = year;
        this.price = price;
    }
}
